package cn.apotato.inclusion.commin.annotation;


import cn.apotato.inclusion.commin.enums.InclusionStrategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/8/6 13:42
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Inclusion {
    /**
     * 指定返回值的填充策略
     * @return 填充策略
     */
    InclusionStrategy value() default InclusionStrategy.WITH_KEY;

    /**
     * 返回值的key
     */
    String key() default "data";
}
